package com.iplant.wms.service.po.pkg;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.iplant.base.po.BasePO;
import com.iplant.base.po.enums.DBSchemas;
import com.iplant.base.utils.annotation.po.DBBasePO;
import com.iplant.base.utils.annotation.field.DBField;

import java.io.Serializable;

/**
 * 容器类型 种类 不同类型规格不一 重量不一 承重不一
 * 
 * @author ShrisJava
 *
 */
@DBBasePO(TableName = "mss_containertype", CheckName = {"Code","Name"},
        CodeAuto = true,CodePrefix = "RQLX-",
        Schemas = DBSchemas.WMS)
public class MSSContainerType extends BasePO implements Serializable {
    private static final long serialVersionUID = 1L;

    @DBField
    public double Length = 0;

    @DBField
    public double Width = 0;

    @DBField
    public double Height = 0;

    /**
     * 重量
     */
    @DBField
    public double Weight = 0;

    /**
     * 承重
     */
    @DBField
    public double Bearing = 0;

    /**
     * 材料实质 如钢质 纸质 PVC 塑料等
     */
    @DBField
    public String Essence = "";

    /**
     * 最小包装数限制
     */
    @DBField(DefaultValue = "1")
    public int MinPackingNumber = 1;

    @JsonProperty("Length")
    public double getLength() {
        return Length;
    }

    public void setLength(double length) {
        Length = length;
    }

    @JsonProperty("Width")
    public double getWidth() {
        return Width;
    }

    public void setWidth(double width) {
        Width = width;
    }

    @JsonProperty("Height")
    public double getHeight() {
        return Height;
    }

    public void setHeight(double height) {
        Height = height;
    }

    @JsonProperty("Weight")
    public double getWeight() {
        return Weight;
    }

    public void setWeight(double weight) {
        Weight = weight;
    }

    @JsonProperty("Bearing")
    public double getBearing() {
        return Bearing;
    }

    public void setBearing(double bearing) {
        Bearing = bearing;
    }

    @JsonProperty("Essence")
    public String getEssence() {
        return Essence;
    }

    public void setEssence(String essence) {
        Essence = essence;
    }

    @JsonProperty("MinPackingNumber")
    public int getMinPackingNumber() {
        return MinPackingNumber;
    }

    public void setMinPackingNumber(int minPackingNumber) {
        MinPackingNumber = minPackingNumber;
    }

}
